#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QPushButton>
#include"mysubwidget.h"

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void mySlot1();

    void mySlot2();

private:
    QPushButton *b1 = new QPushButton();
    QPushButton *b2 = nullptr;
    QPushButton *b3 = nullptr;

    MySubWidget mySubW;
};
#endif // WIDGET_H
